import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

import { createListView } from './views/CreateListView'

export default new Router({
  mode: 'history',
  scrollBehavior: () => ({ y: 0 }),
  routes: [
    { path: '/top/:page(\\d+)?', component: createListView('top') },
    { path: '/', redirect: '/top' }
  ]
})
